﻿<div ng-controller="memberidealMoney" >
    <div class="page-header text-info"  >
        <h4>用户虚拟货币变更日志记录：</h4>
    </div>

    <div class="row">
        <span class="col-sm-1">起始：</span>
        <div class="col-md-3">
            <p class="input-group">
                <input type="text" class="form-control" uib-datepicker-popup="{{format}}"
                       ng-model="from.date" is-open="from.openStatus" max-date="to.date"
                       datepicker-options="dateOptions" show-weeks="false" ng-required="true"
                       close-text="关闭" clear-text="清除" current-text="今天" ng-click="open(from)" />
                <span class="input-group-btn">
                    <button type="button" class="btn btn-default" ng-click="open(from)">
                        <i class="glyphicon glyphicon-calendar"></i>
                    </button>
                </span>
            </p>
        </div>
        <span class="col-sm-1">结束：</span>
        <div class="col-md-3">
            <p class="input-group">
                <input type="date" class="form-control" uib-datepicker-popup="{{format}}"
                       ng-model="to.date" is-open="to.openStatus" min-date="from.date"
                       datepicker-options="dateOptions" show-weeks="false" ng-required="true"
                       close-text="关闭" clear-text="清除" current-text="今天" ng-click="open(to)"/>
                <span class="input-group-btn">
                    <button type="button" class="btn btn-default" ng-click="open(to)"><i class="glyphicon glyphicon-calendar"></i></button>
                </span>
            </p>
        </div>
        <div class="col-md-1">
            <button class="btn btn-success" ng-click="search(false)">搜索</button>
        </div>
    </div>
    <table class="table table-hover table-bordered">
        <thead>
            <tr class="form-group form-group-sm">
                <th class="col-sm-1 control-label ">发生时间</th>
                <th class="col-sm-1 control-label ">变化</th>
                <th class="col-sm-1 control-label ">变更后(辣椒币)</th>
                <th class="col-sm-1 control-label ">附加信息</th>
                <th class="col-sm-1 control-label ">变更类型</th>
                <th class="col-sm-1 control-label ">关联 id</th>
            </tr>
        </thead>
        <tbody ng-show="!loadingState">
            <tr ng-repeat="item in idealMoneies">
                <td>
                    {{item.EventTime|date:'yyyy-MM-dd hh:mm:ss'}}
                </td>
                <td>
                    {{item.ChageNumber}}
                </td>
                <td>
                    {{item.IdealMoneyLog}}
                </td>
                <td>
                    {{item.Message}}
                </td>
                <td>
                    {{item.ChangeType|enumVals:'IntegralChangeType'}}
                </td>

                <td>
                    {{item.ObjectId}}
                </td>
            </tr>
        </tbody>
        <tbody ng-if="loadingState">
            <tr>
                <td colspan="8" class="text-center">
                    <img width="60" src="/App/images/loading.gif" />
                </td>
            </tr>
        </tbody>
        <tfoot >
            <tr>
                <td colspan="8">
                    <div class="pull-right">
                        <div class="pagination-info"><span class="ng-binding">共有{{total}}条</span>， <span class="ng-binding">每页显示：{{size}}条</span></div>
                        <uib-pagination boundary-links="true" total-items="total" ng-model="current" max-size="3" ng-change="search(true)" items-per-page="size"
                                        class="pagination-sm" previous-text="&lsaquo;" next-text="&rsaquo;" first-text="&laquo;" last-text="&raquo;"></uib-pagination>
                    </div>
                </td>
            </tr>
        </tfoot>
    </table>
</div>